package com.ec.system.modules.sys.dto;

import com.ec.core.mybatis.groups.AddGroup;
import com.ec.core.mybatis.groups.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * <p>
 *
 * </p >
 *
 * @author Eric Lee
 * @since 2022-06-02 22:05
 */
@Data
public class SysDictDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 字典明细ID
     */
    @NotBlank(message = "字典明细ID不能为空", groups = {UpdateGroup.class})
    private String dictId;

    /**
     * 字典ID
     */
    @NotBlank(message = "字典ID不能为空", groups = {AddGroup.class})
    private String dictTypeId;

    /**
     * 字典明细名称
     */
    @NotBlank(message = "字典明细名称不能为空", groups = {AddGroup.class})
    private String dictName;

    /**
     * 字典明细key
     */
    @NotBlank(message = "字典明细key不能为空", groups = {AddGroup.class})
    private String dictKey;

    /**
     * 字典明细value
     */
    @NotBlank(message = "字典明细value不能为空", groups = {AddGroup.class})
    private String dictValue;

    /**
     * 字典明细排序
     */
    private Integer dictSort;

    /**
     * 描述
     */
    private String dictDesc;
}